using AutoMapper;
using RBACDemo.Ability.Docking.RoleAuthApp.Dtos;
using RBACDemo.Ability.Docking.UserApp.Dtos;
using RBACDemo.Domain.UserInfo;
using Youshow.Ace.AspNetCore.ApiRouteDescription.Models;

namespace RBACDemoSystem.Ability
{
    public class RBACDemoProfile : Profile
    {
        public RBACDemoProfile()
        {
            CreateMap<ApiRouteDescriptionModel, ApiAuth>();
            CreateMap<Role, RoleDto>();
            CreateMap<RoleCreateDto, Role>();
            CreateMap<RoleUpdateDto, Role>();
            CreateMap<ApiAuth, ApiAuthDto>();
            CreateMap<User, UserDto>();
        }
    }
}
